package site.sorghum.ddl.mybatis.plus.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Value;

import java.math.BigDecimal;

@Value
@TableName("plus_bank_account")
public class BankAccount {
    @TableId
    @TableField("long_id")
    String longId;
    @TableField("number")
    String accountNumber;
    String accountHolder;
    @TableField(exist = false)
    BigDecimal balance;
    AccountType accountType;

    public enum AccountType {
        SAVINGS, CHECKING, CREDIT
    }
}